Skip to content

use existing oauth grant for public client#31015

Merged
lunny merged 3 commits into
go-gitea:mainfrom
denyskon:fix/oauth-login
May 21, 2024
Merged

use existing oauth grant for public client#31015
lunny merged 3 commits into
go-gitea:mainfrom
denyskon:fix/oauth-login

Conversation

@denyskon
Copy link
Copy Markdown
Member

Do not try to create a new authorization grant when one exists already, thus preventing a DB-related authorization issue.

Fix #30790 (comment)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 18, 2024
@denyskon denyskon added this to the 1.23.0 milestone May 18, 2024
@denyskon denyskon requested a review from wxiaoguang May 18, 2024 13:02
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 18, 2024
Comment thread routers/web/auth/oauth.go
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 19, 2024
@denyskon denyskon added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 19, 2024
Comment thread routers/web/auth/oauth.go
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 20, 2024
@pull-request-size pull-request-size Bot added size/L and removed size/S labels May 21, 2024
@lunny lunny force-pushed the fix/oauth-login branch from 5661300 to a9502ea Compare May 21, 2024 05:37
@pull-request-size pull-request-size Bot added size/S and removed size/L labels May 21, 2024
@denyskon denyskon added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 21, 2024
@lunny lunny enabled auto-merge (squash) May 21, 2024 15:25
@lunny lunny merged commit 9c8c9ff into go-gitea:main May 21, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request May 21, 2024
Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix go-gitea#30790 (comment)

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request May 21, 2024
Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix go-gitea#30790 (comment)

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 21, 2024
@denyskon denyskon deleted the fix/oauth-login branch May 21, 2024 16:25
lunny added a commit that referenced this pull request May 21, 2024
Backport #31015 by @denyskon

Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix #30790 (comment)

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
lunny added a commit that referenced this pull request May 21, 2024
Backport #31015 by @denyskon

Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix #30790 (comment)

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 22, 2024
* giteaofficial/main:
  Add nix flake for dev shell (go-gitea#30967)
  [skip ci] Updated translations via Crowdin
  Fix wrong display of recently pushed notification (go-gitea#25812)
  use existing oauth grant for public client (go-gitea#31015)
  Fix automerge will not work because of some events haven't been triggered (go-gitea#30780)
@yardenshoham yardenshoham added the backport/done All backports for this PR have been created label Jun 18, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/authentication type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants